package com.coco.service;

import com.coco.model.VideoCondition;
import com.coco.model.VideoModel;
import com.coco.model.VideoNum;
import com.coco.utils.CoPageResp;

import java.util.List;

/**
 * @author GHOSTLaycoo
 * @date 2020/4/13 0013 - 上午 8:44
 */
public interface VideoService {
    CoPageResp<VideoModel> getVideosByCondition(VideoCondition videoCondition);

    int delete(String id);

    int save(VideoModel videoModel);

    int update(VideoModel videoModel);

    List<VideoNum> getTypeNums();

    VideoModel getVideoById(String id);

    int updateWatch(String id);

    int updateStar(String id, int sum);
}
